package demo3;

interface IA{

}
class A implements IA {

}
class B implements IA {

}
public class Test2 {
    public static IA func() {
        //return new A();
        return new B();
    }
    public static void main(String[] args) {
        IA ia = new A();
        IA ia1 = new B();
        IA[] ias = new IA[]{new A(),new B()};
    }
}
